'use strict';

var vendorImpl = require('./dao_impl/vendor.js');
var ferror = require('../common/app_utils.js').formatError;
var fout = require('../common/app_utils.js').formatOutput;
var errInfo = require('../common/err_info.js');
var debug = require('debug')('dao_vendor');

function MongoDao() {
	var self = this instanceof MongoDao ? this : new MongoDao();
	return self;
}

module.exports = new MongoDao();
var theProto = MongoDao.prototype;

// create a thread
theProto.create = function(json) {
	return vendorImpl.create(json);
};
